<template>
	<video id="myVideo" :src="src" controls></video>
</template>

<script>
export default{
	data(){
		return {
			src: ''
		}
	},
	onLoad(option){
		this.src = decodeURIComponent(option.src);
	},
	onReady(res){
		this.videoContext = uni.createVideoContext('myVideo')
	}
}
</script>

<style scoped>
#myVideo{
	width: 100vw;
	height: 100vh;
}
</style>
